<?php
class calc_unit
{
	public $type = null;
	public $name = null;
	public function get_result() {
		return false;
	}
	
	public function __construct()
	{
	}
	
	protected function write_symptom_push($uid, $type)
	{
		//code here!
	}

	protected function write_symptom_data($uid, $type)
	{
		//code here!
	}
}

class total_cholesterol_critical_exceed extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "总胆固醇临界超标";//症状的名字
	}

	public function get_result($uid)
	{
		/*
		 * if(超标){
		* 		write to UserSymptom=>revelant data
		* 		if(shared)
		 * 		{
		* 			wriet to UserSymtomPushNotice;
		* 		}
		* return true;
		* }
		*/

		return false;
	}
}

class total_cholesterol_exceed extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "总胆固醇超标";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class low_density_lipoprotein_critical_exceed extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "低密度脂蛋白（禁食8小时以上）临界超标";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class low_density_lipoprotein_exceed extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "低密度脂蛋白（禁食8小时以上）超标";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class triglyceride_critical_exceed extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "甘油三酯（禁食8小时以上）临界超标";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class triglyceride_exceed extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "甘油三酯（禁食8小时以上）超标";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class critical_diabetes extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "临界糖尿病";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class diabetes extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "糖尿病";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class normal_blood_sugar_exceed extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "血糖超标";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class critical_hypertension extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "临界高血压";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class first_stage_hypertension extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "一阶高血压";//症状的名字
	}

	public function get_result($uid)
	{
	}
}

class second_stage_hypertension extends calc_unit
{
	public function __construct()
	{
		parent::__construct();
		$name = "二阶高血压";//症状的名字
	}

	public function get_result($uid)
	{
	}
}
?>